// WinApplication.cpp : implementation of the CApplication class
//

#include "stdafx.h"
#include "WinApplication.h"

CWinApplication::CWinApplication()
{
	// TODO: add member initialization code here
}
CWinApplication::~CWinApplication()
{
	m_winFormList.Destruction();
}


GList * CWinApplication::GetWinFormList()
{
	return &m_winFormList;
}
CApplicationOptions * CWinApplication::GetApplicationOptions()
{
	return &m_applicationOptions;
}
void CWinApplication::MapXMLTagsToMembers()
{
	MapAttribute(&m_id,"id");
	MapAttribute(&m_name,"name");
	MapAttribute(&m_version,"version");
	MapAttribute(&m_enabled,"enabled");
	MapMember(&m_description,"Description");
	MapMember(&m_comment,"Comment");
	MapMember(&m_passwordPolicyId,"PasswordPolicyId");
	MapMember(&m_credentialSharingGroupId,"CredentialSharingGroupId");
	MapMember(&m_applicationOptions);
	MapMember(&m_winFormList,CWinForm::GetStaticTag(),"WinForms");
}
IMPLEMENT_FACTORY(CWinApplication, WinApplication);
